package com.mujin.keji.collectionsystem.module.main.repository;

import android.arch.lifecycle.LiveData;

import com.mujin.keji.collectionsystem.base.BaseDto;
import com.mujin.keji.collectionsystem.base.CommonRepository;
import com.mujin.keji.collectionsystem.http.Api;
import com.mujin.keji.collectionsystem.module.main.dto.QueryPhoneDto;
import com.mujin.keji.collectionsystem.module.main.vo.QueryPhoneVo;

/**
 * 查询手机号码Repository
 *
 * @author weishixiong
 * @Time 2018-05-25
 */

public class QueryPhoneRepository extends CommonRepository<QueryPhoneDto> implements IQueryPhoneRepository {
    @Override
    public LiveData<BaseDto<QueryPhoneDto>> queryPhone(QueryPhoneVo vo) {
        return request(Api.queryPhone(vo)).send().get();
    }
}
